<?php	$atr=array(
					"name"=>"time",
					"onsubmit"=>"return checkTime()"
				  ); 
	echo form_open('time/edit1',$atr);
	$bar="Edit Time "; 
	$N=array(
		"1"=>"1",
		"2"=>"2",
		"3"=>"3",
		"4"=>"4"
	);
	$F=array(
		"150"=>"150%",
		"30"=>"30%"
	);
	
?> 
 
<table id="box-table-a" cellspacing="1" align="right"  width="900px">
	<tr>
		<td colspan=5 align=right class=bar><?php echo $bar;?></td>
	</tr>	
	<tr>
		<td>Staff_ID</td>
		<td><input type="text" name="Staff_ID" readonly="readonly" value=<?php echo $result->Staff_ID; ?>> </td>	
		<td>OT_Weekday</td>
		<td><input type="text" name="OT_Weekday" readonly="readonly" value="<?php echo $result->OT_Weekday; ?>"> </td>
	</tr>
	<tr>
		
		<td>WorkingDay</td>
		<td><input type="text" name="WorkingDay"  value=<?php echo $result->WorkingDay; ?>> </td> 
		<td>ON_Weekday</td>
		<td><input type="text" name="ON_Weekday" readonly="readonly" value=<?php echo $result->ON_Weekday; ?>> </td>
	
		
	</tr>
	<tr>
		<td>FromDate</td>
		<td><input type="text" name="FromDate" readonly="readonly" value=<?php echo $result->FromDate; ?> id="Date" onclick="loadCalendar(this.id);"> </td>
		<td>Time_Saturday</td>
		<td><input type="text" name="Time_Saturday" readonly="readonly" value=<?php echo $result->Time_Saturday; ?>> </td>	   
	
		
	</tr>
	<tr>
		<td>ToDate</td>
		<td><input type="text" name="ToDate" readonly="readonly" value=<?php echo $result->ToDate; ?> id="Date1" onclick="loadCalendar(this.id);"> </td>
		<td>OT_Saturday</td>
		<td><input type="text" name="OT_Saturday" readonly="readonly" value=<?php echo $result->OT_Saturday; ?>> </td>	   
	
		   
	</tr>
	<tr>
		<td> Worked Day </td>
		<td> <input type="text" name="HourOff" readonly="readonly" value="<?php echo $result->WorkedDay;?>" /> </td>		   
		<td>OT_Sunday</td>
		<td><input type="text" name="OT_Sunday" readonly="readonly" value=<?php echo $result->OT_Sunday; ?>> </td>	
		
		
	</tr>	
	<tr>
		<td>ULDay</td>
		<td><input type="text" name="ULDay" readonly="readonly" value=<?php echo $result->ULDay; ?>> </td>
		<td>ON_Saturday</td>
		<td><input type="text" name="ON_Weekend" readonly="readonly" value=<?php echo $result->ON_Saturday; ?>> </td>  				  
	</tr>
	<tr>
		<td></td>
		<td></td>
		<td>ON_Sunday</td>
		<td><input type="text" name="ON_Weekend" readonly="readonly" value=<?php echo $result->ON_Sunday; ?>> </td>  
	</tr>
	<tr>
		<td>ALDay</td>
		<td><input type="text" name="ALDay" readonly="readonly" value=<?php echo $result->ALDay; ?>> </td>  
		<td>OT_Holiday</td>
		<td><input type="text" name="OT_Holiday" readonly="readonly" value=<?php echo $result->OT_Holiday; ?> > </td>
				  
	</tr>
	<tr>
		<td>PLDay</td>
		<td><input type="text" name="PLDay" readonly="readonly" value=<?php echo $result->PLDay; ?>> </td>
		<td>ON_Holiday</td>
		<td><input type="text" name="ON_Holiday" readonly="readonly" value=<?php echo $result->ON_Holiday; ?> > </td>  
	
		
	</tr>
	<tr>
		<td>SLDay</td>
		<td><input type="text" name="SLDay" readonly="readonly" value=<?php echo $result->SLDay; ?>> </td>
		<td> Hour Off </td>
		<td><input type="text" name="HourOff" readonly="readonly" value="<?php echo $result->HourOff;?>" />  </td>
	</tr>
	<tr>
		<td>F</td>
		<td><?php echo form_dropdown('F',$F,$result->F );?></td>	
		<td>N</td>
		<td><?php echo form_dropdown('N',$N,$result->N);?> </td>
	</tr>		
	<tr>	
		<td>PerformanceBonus</td>
		<td><input type="text" name="PerformanceBonus" value="<?php echo $result->PerformanceBonus; ?>" onkeyup="this.value=add_commas(this.value);" > </td>
		<td>P_Desciption</td>
		<td><input type="text" name="P_Desciption" value="<?php echo $result->P_Desciption; ?>"> </td>
	</tr>
	<tr>	
		<td>ComDeduction</td>
		<td><input type="text" name="ComDeduction" value="<?php echo $result->ComDeduction; ?>" onkeyup="this.value=add_commas(this.value);" > </td>
	
		<td>C_Desciption</td>
		<td><input type="text" name="C_Desciption" value="<?php echo $result->C_Desciption; ?>"> </td>
	</tr>		
	<tr>
		<td colspan="4" align="center"><input type="submit" value="edit"/></td>
	</tr>
	<input type="hidden" name="MonthTime_ID"  value=<?php echo $result->MonthTime_ID; ?>
</table>	
<?php form_close();?>




